package cn.silver.module.system.param;

import cn.silver.framework.core.validate.auth.PasswordGroup;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;

@Data
@NoArgsConstructor
@Schema(name = "PasswordParam",title = "修改密码参数对象")
public class PasswordParam implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    private String mobile;
    private String oldPassword;
    @NotBlank(message = "修改后的密码不能为空",groups = {PasswordGroup.class})
    private String newPassword;
}
